Repository navigation
chore(prettier): adopt Prettier with a CI format gate - #68
Merged
Merged
Conversation
- add .prettierrc matching the codebase style (double quotes, semis, 2-space, trailing commas, printWidth 100) and .prettierignore (dist, conflict copies, data) - add format / format:check npm scripts - add a Format check step to CI (runs before lint) - prettier as a dev-only dependency (published package stays zero-runtime-dep) No eslint formatting-rule conflicts exist, so eslint-config-prettier is not needed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Mechanical reformat (`prettier --write`) — whitespace only, no behaviour change. Recorded in .git-blame-ignore-revs in the following commit so `git blame` skips it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
✅ Docker image built successfully
|
sandstream
added a commit
that referenced
this pull request
Jun 27, 2026
- prettier-format opencode.{ts,test.ts} — the format:check gate (from #68) was red
- order a message's text parts by part id, not filesystem-walk order, so a
multi-part message reassembles in order rather than arbitrarily
- populate result.filesSkipped for unparseable message files (was always 0)
All 3 opencode tests pass; format:check clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adopts Prettier for the TypeScript codebase (356
.tsfiles previously had no formatter), with a CI gate so formatting stays consistent..prettierrctuned to the existing style — double quotes, semicolons, 2-space, trailing commas,printWidth: 100— so the reformat is minimal-churn rather than a style change (measured: p90 line length 77, p99 110)..prettierignoreexcludesdist/, deps, cloud-sync conflict copies (* 2.ts), and data files (*.jsonl, lockfile,.kit/).format/format:checknpm scripts..git-blame-ignore-revsrecords the mechanical reformat commit sogit blamestays useful.Prettier is a dev-only dependency — the published package stays zero-runtime-dep.
Why
It's the one dev-ergonomics gap relative to sibling repos: no formatter on a large TS codebase means style drift and review noise. The hooks/security tooling here are already strong; this just adds auto-format + a gate.
Commits
chore(prettier)— config, scripts, CI gate (review this one).style— mechanicalprettier --writereformat (whitespace only, no behaviour change).chore— add the reformat SHA to.git-blame-ignore-revs.Scope / follow-ups
.tsonly. JSON/Markdown/YAML can follow in a separate PR to keep this diff reviewable.eslint-config-prettierneeded — the ESLint config has no formatting rules to conflict with.tsconfigflags (noUncheckedIndexedAccess,noFallthroughCasesInSwitch).Verification
npm run format:checkclean;npm run lint0 errors (pre-existing warnings only)..tsblob verified prettier-clean at the git-object level.🤖 Generated with Claude Code